package com.zhang.service.impl;

import com.zhang.mapper.IClassesMapper;
import com.zhang.pojo.Classes;
import com.zhang.service.IClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ClassesServiceImpl implements IClassesService {
    @Autowired
    private IClassesMapper classesMapper;

    @Override
    public List<Classes> findBySchool(int schoolId) {
        return classesMapper.findBySchool(schoolId);
    }

    @Override
    public void addClass(Classes classes) {
        classesMapper.addClass(classes);
    }

    @Override
    public Classes queryById(int classId) {
        return classesMapper.queryById(classId);
    }

    @Override
    public void update(String teacher, int classId) {
        classesMapper.update(teacher, classId);
    }
}
